home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / file / managers / mc-3.2 / mc-3 / mc-3.2.1 / vfs / tcputil.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-17  |  915 b   |  26 lines

  1. /* Operations of the rpc manager */
  2.  
  3. /* Please note that the RPC manager does not use integers, it only uses */
  4. /* 4-byte integers for the comunication */
  5. enum {
  6.     RPC_END,            /* End of RPC commands */
  7.     RPC_INT,            /* Next argument is integer */
  8.     RPC_STRING,            /* Next argument is a string */
  9.     RPC_BLOCK            /* Next argument is a len/block */
  10. };
  11.  
  12. int rpc_get (int sock, ...);
  13. int rpc_send (int sock, ...);
  14. void rpc_add_get_callback (int sock, void (*cback)(int));
  15. int socket_read_block (int sock, char *dest, int len);
  16. int socket_write_block (int sock, char *buffer, int len);
  17. int send_string (int sock, char *string);
  18. void tcp_init (void);
  19. int open_tcp_link  (char *host, int *port, char *caller);
  20. char *get_host_and_username (char *path, char **host, char **user, int *port,
  21.                  int default_port, int default_to_anon, char **pass);
  22.  
  23. extern int tcp_inited;
  24. extern int use_netrc;
  25. extern int got_sigpipe;
  26.